<?php

$app->container->singleton('log', function () {
    $log = new \Monolog\Logger('slim-skeleton');
    $log->pushHandler(new \Monolog\Handler\StreamHandler('../data/logs/'.date('Y-m-d').'.log', \Monolog\Logger::DEBUG));
    return $log;
});